<div class="dialog">
    <table>
        <tbody>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="serialNumber"><g:message code="retailer.serialNumber" default="Serial Number" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: retailerInstance, field: 'serialNumber', 'errors')}">
                    <g:textField name="serialNumber" maxlength="4" value="${fieldValue(bean: retailerInstance, field: 'serialNumber')}" />
                </td>
            </tr>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="name"><g:message code="retailer.name" default="Name" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: retailerInstance, field: 'name', 'errors')}">
                    <g:textField name="name" maxlength="50" value="${fieldValue(bean: retailerInstance, field: 'name')}" />
                </td>
            </tr>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="department"><g:message code="retailer.department" default="Department" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: retailerInstance, field: 'department', 'errors')}">
                    <g:select name="department.id" from="${org.leaf.green.b2b.Department.list()}" optionKey="id" value="${retailerInstance?.department?.id}"  />
                </td>
            </tr>
        
            <tr class="prop">
                <td valign="top" class="name">
                    <label for="isActive"><g:message code="retailer.isActive" default="Is Active" />:</label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: retailerInstance, field: 'isActive', 'errors')}">
                    <g:checkBox name="isActive" value="${retailerInstance?.isActive}" />
                </td>
            </tr>
        
        </tbody>
    </table>
</div>
